import re
with open(r'c:\tools\ipv6.txt') as data:
	for line in data:
		print(line.strip())

regex0=r'ipv6 address (\d+)'
regex1=r'ipv6 address (\d+):\1'
regex2=r'ipv6 address (\d+):\1:\1'
regex3=r'ipv6 address (\d+):\1:\1:\1'


with open(r'c:\tools\ipv6.txt') as data:
	for line in data:
		match=re.search(regex0,line)
		if match:
			print(line.strip())
			print(match.groups())